package com.cloud.sso.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class MenuSaveDto {

    private String id;

    @NotEmpty(message = "菜单名称不能为空")
    private String menuName;

    @NotEmpty(message = "菜单编码不能为空")
    private String menuCode;

    private String parentId = "0";   //如果是最上级菜单 0

    private String uri;

    @NotEmpty(message = "所属应用不能为空")
    private String appId;

    @NotNull(message = "是否为最下级菜单不能为空")
    private String leaf = "0";

    private String remark;

}
